package org.aiforum.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.aiforum.domain.Contact;
import org.springframework.stereotype.Repository;

@Repository
public class ContactDaoImpl implements ContactDao{
    
	/*
	 * 创建实体管理类对象
	 */
	@PersistenceContext
	private EntityManager entityManager;
	
	public void persist(Contact entity) {
		 entityManager.persist(entity);
	}

}
